

module	Painter

	def Painter.err(error)
	  $stderr.puts error
#		raise
	end

	def Painter.out(out)
	  $stdout.puts(out)
	end

	def Painter.log(log)
	  if $VERBOSE : Painter.out(log) end
	end

	def Painter.deb(debuginfo=nil)
		Painter.err('-- ')
		Painter.err('-- '+debuginfo) unless debuginfo==nil
		Painter.err('-- '+caller[0]+'      '+Time.now.to_s)
		if $! : Painter.err('-- '+$!.inspect) end
		Painter.err('-- ')
#		if $! : raise end
	end

end
